package com.itlxd.global;

/**提示消息
 * @author: lixiaodong
 **/
public class SysMessages {

    public final static String ARGS_IS_NULL = "参数为空";
    public final static String NO_LOGIN = "用户未登录";

    /**
     * 查询操作
     */
    public final static String QUERY_SUCCESS = "查询成功";
    public final static String QUERY_FAIL = "查询失败";

    /**
     * 插入操作
     */
    public final static String INSERT_SUCCESS = "插入成功";
    public final static String INSERT_FAIL = "插入失败";

    /**
     * 删除操作
     */
    public final static String DELETE_SUCCESS = "删除成功";
    public final static String DELETE_FAIL = "删除失败";

    /**
     * 更新操作
     */
    public final static String UPDATE_SUCCESS = "更新成功";
    public final static String UPDATE_FAIL = "更新失败";

    public final static String ARGS_EXCEPTION = "参数异常";
    public final static String SERVER_EXCEPTION = "服务器异常";

    /**
     * employee操作
     */
    public final static String USERNAME_PASSWORD_IS_NULL = "用户名或密码为空";
    public final static String USERNAME_PASSWORD_ERROR = "用户名或密码错误";
    public final static String USERNAME_IS_EXIST = "账号已存在";
    public final static String EMPLOYEE_IS_FORBIDDEN = "员工已被禁用";
    public final static String EMPLOYEE_IS_NOT_EXIST = "员工不存在";
    public final static String LOGIN_SUCCESS = "登陆成功";
    public final static String LOGOUT_SUCCESS = "退出成功";
    public final static String USERNAME_IS_NULL = "用户名为空";
    public final static String USERNAME_LENGTH_ERROR = "账号长度应是3-20";
    public final static String LOGIN_EMPLOYEE = "employee";

    /**
     * category操作
     */
    public final static String CATEGORY_NAME_IS_EXIST = "分类名称已存在";
    public final static String CATEGORY_ID_IS_NULL = "分类ID为空";
    public final static String CATEGORY_HAS_DISH = "当前分类下关联了菜品";
    public final static String CATEGORY_HAS_SETMEAL = "当前分类下关联了套餐";
    public final static String CATEGORY_HAS_DISH_OR_SETMEAL = "当前分类下关联了菜品或套餐";

    /**
     * 套餐操作
     */
    public final static String SETMEAL_ON_SALE = "套餐正在启售中";

    /**
     * 文件操作
     */
    public final static String FILE_IS_NULL = "文件为空";
    public final static String FILE_UPLOAD_SUCCESS = "文件上传成功";
    public final static String FILE_UPLOAD_FAIL = "文件上传失败";

    /**
     * 用户操作
     */
    public final static String LOGIN_USER = "user";
    public final static String GENERATE_CODE_SUCCESS = "请5分钟之内输入验证码";
    public final static String CODE_IS_ERROR = "验证码错误或已失效";
}
